package com.alibaba.aliper.agent.sys;

public class CpuPercentage {
	public CpuPercentage(double[][] data){
		this.data = data;
	}
	public int getCpuCount(){
		return this.data.length - 1;
	}
	private double[][] data;
	public double getUser(int index) {
		return data[index][0];
	}
	public double getNice(int index) {
		return data[index][1];
	}
	public double getSystem(int index) {
		return data[index][2];
	}
	public double getIdle(int index) {
		return data[index][3];
	}
	public double getIowait(int index) {
		return data[index][4];
	}
	public double getIrq(int index) {
		return data[index][5];
	}
	public double getSoftirq(int index) {
		return data[index][6];
	}
}
